package main

import "fmt"

// 创建slice
func main() {

	// 声明数组
	dwarfArray := [...]string{"Ceres", "Pluto", "Haumea",
		"Makemake", "Eris"}
	dwarfSlice := dwarfArray[:]
	fmt.Println(dwarfSlice)
	// 声明slice
	dwarfs := []string{"Ceres", "Pluto", "Haumea",
		"Makemake", "Eris"}

	fmt.Println(dwarfs)
	fmt.Printf("array %T\n", dwarfArray)
	fmt.Printf("slice %T\n", dwarfs)
}
